home *** CD-ROM | disk | FTP | other *** search
/ Young Minds / Young Minds Interactive CD-ROM.ISO / backgamm / init.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-09  |  1.4 KB  |  45 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that this notice is preserved and that due credit is given
  7.  * to the University of California at Berkeley. The name of the University
  8.  * may not be used to endorse or promote products derived from this
  9.  * software without specific prior written permission. This software
  10.  * is provided ``as is'' without express or implied warranty.
  11.  */
  12.  
  13. #ifndef lint
  14. static char sccsid[] = "@(#)init.c    5.2 (Berkeley) 2/16/88";
  15. #endif /* not lint */
  16.  
  17. #include <sgtty.h>
  18.  
  19. /*
  20.  * variable initialization.
  21.  */
  22.  
  23.                 /* name of executable object programs */
  24. char    EXEC[] = "/usr/games/backgammon";
  25. char    TEACH[] = "/usr/games/teachgammon";
  26.  
  27. int    pnum    = 2;        /* color of player:
  28.                     -1 = white
  29.                      1 = red
  30.                      0 = both
  31.                      2 = not yet init'ed */
  32. int    acnt    = 0;        /* length of args */
  33. int    aflag    = 1;        /* flag to ask for rules or instructions */
  34. int    bflag    = 0;        /* flag for automatic board printing */
  35. int    cflag    = 0;        /* case conversion flag */
  36. int    hflag    = 1;        /* flag for cleaning screen */
  37. int    mflag    = 0;        /* backgammon flag */
  38. int    raflag    = 0;        /* 'roll again' flag for recovered game */
  39. int    rflag    = 0;        /* recovered game flag */
  40. int    tflag    = 0;        /* cursor addressing flag */
  41. int    iroll    = 0;        /* special flag for inputting rolls */
  42. int    rfl    = 0;
  43.  
  44. char    *color[] = {"White","Red","white","red"};
  45.